export let getPickerData = {
  date: (year, month, day) => {
    let now = new Date();
    let nowYear = now.getFullYear();
    let data = [];
    // for (var i = 0,i<){

    // }
  },
  time: (min, sec) => {
    let data = [],
      hh = [];
    for (var x = 0; x < 24; x++) {
      hh.push({ value: x >= 10 ? x : "0" + x });
    }
    data.push(hh);
    if (min) {
      let mm = [];
      for (var y = 0; y < 60; y++) {
        mm.push({ value: y >= 10 ? y : "0" + y });
      }
      data.push(mm);
    }
    if (sec) {
      let ss = [];
      for (var z = 0; z < 60; z++) {
        ss.push({ value: z >= 10 ? z : "0" + z });
      }
      data.push(ss);
    }
    return data;
  },
  format: data => {}
};

/*
  一级：
  [...]

  二级：
  [
    { value: "", children: [...] },
    ...
  ]

  三级：
  [
    { value: "", children:
      [
        { value: "", children: [...] },
        ...
      ]
    },
    ...
  ]

  四级：
  [
    { value: "", children:
      [
        { value: "", children:
          [
            { value: "", children: [...] },
            ...
          ]
        },
        ...
      ]
    },
    ...
  ]

 */
